package com.example.manage.client;

import com.example.api.user.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author 86188
 */
@FeignClient(name = "user-server")
public interface UserClient {

    /**
     * 新增用户
     *
     * @param phone 手机号
     * @return
     */
    @RequestMapping(value = "/user/createUserByPhone", method = RequestMethod.POST)
    User createUserByPhone(String phone);
}
